require 'java'
require 'reload_handler'

server = org.mortbay.jetty.Server.new(3030)
handler = ReloadHandler.new('lib/rakefile.rb', :main_compile, ['tmp/main/'], 'com.example.HelloWorldServlet')
server.set_handler(handler)

server.start
puts "\nHit <enter> stop server\n\n"
$stdin.readline
server.stop
